package demo3;

import demo3.SingletonLazy00;

/**
 * 测试单线程环境下懒汉模式
 */
public class TestSingletonLazy00 {
    public static void main(String[] args) {
        SingletonLazy00 instance1=SingletonLazy00.getInstance();
        System.out.println(instance1);
        SingletonLazy00 instance2=SingletonLazy00.getInstance();
        System.out.println(instance2);
        SingletonLazy00 instance3=SingletonLazy00.getInstance();
        System.out.println(instance3);
    }
}
